#include <iostream>
#include <string>

#include "./comm/httplib.h"

using namespace httplib;

int main()
{
    Server svr;
   
    //Debug
    std::cout << "debug3"<<std::endl;
    //获取所有的题目列表
    svr.Get("", [](const Request &req, Response &resp){
        //Debug
        std::cout << "debug2"<<std::endl;
        std::string html = R"(njdsfiok)";
        
        // ctrl.AllQuestions(&html);
        resp.set_content(html, "text/plain; charset=utf-8");
    });
    //Debug
    std::cout << "debug4"<<std::endl;
    svr.listen("0.0.0.0",8080);
    return 0;
}